package com.sunda.spmsorder.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 订单审批记录表
 * </p>
 *
 * @author Wayne
 * @since 2021-02-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ORDER_LOG")
@ApiModel(value="OrderLog对象", description="订单审批记录表")
public class OrderLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户工号，通过UUID关联请购单表头获取")
    @TableField("WORK_CODE")
    private String userId;

    @ApiModelProperty(value = "审批意见/操作内容")
    @TableField("COMMENTS")
    private String comments;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private Date createTime;

    @ApiModelProperty(value = "UUID主键，用于关联请购单表UUID获取请购单号")
    @TableField("UUID")
    private String uuid;

    @ApiModelProperty(value = "日志信息自增ID")
    @TableField("LOG_AUTO_ID")
    private Integer logAutoId;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public Integer getLogAutoId() {
        return logAutoId;
    }

    public void setLogAutoId(Integer logAutoId) {
        this.logAutoId = logAutoId;
    }
}
